<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="_assetRecord" />
<title>资产管理</title>
<link rel='stylesheet' type='text/css' href='${ctx}/scripts/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='${ctx}/scripts/fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='${ctx}/scripts/fullcalendar/fullcalendar.js'></script>

<script>
		$(document).ready(function() {
		 $("#startdate").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'#F{$dp.$D(\'enddate\')||\'%y-%M-%d\'}',dateFmt:'yyyy-MM-dd'});});
		 $("#enddate").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'startdate\')}',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		});
</script>
</head> 
<body>
<div id="heading" class="assetRecord">资产使用记录</div>
<div id='calendar'></div>
<div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
<form id="mainForm" action="${ctx }/asset/assets/record.action" class="yform" >
<div id="filter">
<ul>
	<li>使用人:<input type="text" name="filter_LIKES_userid" value="${param['filter_LIKES_userid']}"/></li>
	<li>开始时间:<input type="text" id="startdate" name="filter_GED_startdate"  value="${param['filter_GED_startdate']}"/></li>
	<li>结束时间:<input type="text" id="enddate" name="filter_LED_enddate"  value="${param['filter_LED_enddate']}"/></li>
</ul>
<div class="type-button"><input type="button" onclick="search();" class="search" value="查询"/>
</div>
  		</div>
  		<div id="content">
  			<table id="contentTable">
  				<tr>
  					<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
					<th><a id="information.name" href="javascript:sort('information.name','asc')">资产名称</a></th>
					<th><a id="userid" href="javascript:sort('userid','asc')">使用人</a></th>
  					<th><a id="startdate" href="javascript:sort('startdate','asc')">开始时间</a></th>
  					<th><a id="enddate" href="javascript:sort('enddate','asc')">结束时间</a></th>
  					<th>操作	</th>
  				</tr>
  				<c:forEach items="${page.result}" var="record" varStatus="status">
  				<tr>
  					<td>${page.first+status.index }</td>
  					<td>${record.information.name}</td>
  					<td>${record.userid } </td>
  					<td>${record.startdate}</td>
  					<td>${record.enddate}</td>
  					<td><a href="${ctx}/asset/assets/record!input.action?id=${record.id}">编辑</a>
  					<a href="${ctx}/asset/assets/record!delete.action?id=${record.id}" onclick="return confirmDelete();">删除</a>
  					 </td>
  				</tr>
  				</c:forEach>
  			</table>
  		</div>
<jsp:include page="/common/page.jsp" />
		<div class="type-button"><input onclick="location.href='${ctx}/asset/assets/record_input.action'"
		 type="button" class="submit" value="新增" /> 
	</div>
  	</form>
  </body>
</html>
